package net.xfok.chemical;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.webkit.WebView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.Spinner;

public class Detail extends Activity{
    /** Called when the activity is first created. */
	private static final String MIMETYPE="text/html";
	private static final String ENCODING="utf-8";
	private WebView wv;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.detail);
        wv=(WebView)findViewById(R.id.detail);      
        setViews();
    }
    
    private void setViews(){    	
    	wv.loadData(HTML, MIMETYPE, ENCODING);
        wv.loadDataWithBaseURL(null, HTML, MIMETYPE, ENCODING, null);
    }
    
    private static String HTML;
    
    static{
    	HTML="<html><head><title>$$$title</title></head>" +
    			"<body><p>测试页面测试页面测试页面</p>" +
    			"<p>测试页面测试页面测试页面</p>" +
    			"<p>测试页面测试页面测试页面</p>" +
    			"<p>测试页面测试页面测试页面</p>" +
    			"<br/><br/><br/><br/><br/><br/><br/>"+
    			"<br/><br/><br/><br/><br/><br/><br/>"+
    			"</body></html>";
    	
    }
}